package movie.test.as.hall.biz;

import java.util.List;
import java.util.Map;

import movie.test.as.hall.bean.Hall;
import movie.test.as.hall.dao.HallDao;
import movie.test.common.BaseBiz;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageHelper;

@Component
public class HallBiz  extends BaseBiz{

	@Autowired
	private HallDao hallDao;
	
	public Integer addHall(JSONObject objs) {
		
		return hallDao.addHall(objs);
	}

	public int updateHall(JSONObject objs) {

		return hallDao.updateHall(objs);
	}

	public int deleteHall(JSONObject objs) {
		
		return hallDao.deleteHall(objs);
	}

	public List<Map<String, Object>> findAllHall(JSONObject objs) {
		 PageHelper.startPage(getPagePara(objs));
		return hallDao.findAllHall(objs);
	}

	public Map<String, Object> getHallById(JSONObject objs) {
		
		return hallDao.getHallById(objs);
	}

}
